<div class="title"> { %lang o1 } </div>

<form action="" method="post">

<fieldset>
<legend> { %lang o2 }
</legend>
<table cellspacing="4" cellpadding="4">

<tr> <td>{ %lang o5} </td> <td> 
<select name="regtype">
<option value="0" >{ %lang o51 }</option> 
<option value="1" { %if {#data[registrationtype]} eq 1 }selected{/if}>{ %lang o52 }</option>
<option value="2" { %if {#data[registrationtype]} eq 2 }selected{/if}>{ %lang o53 }</option>
</select>
</td> </tr>
<tr> <td>{ %lang o6} </td> <td><select name="maxauth">{ %loop 3..10 } <option value="{i}" { %if {#data[maxauthfails]} eq {i} }selected{/if}>{i}</option> {/loop}</select></td> </tr>
<tr> <td>{ %lang o7} </td> <td><input  type="checkbox" name="usetermsofuse" { %if {#data[usetermsofuse]} eq true}checked{/if} > </td> </tr>
<tr> <td>{ %lang o8} </td> <td> <select name="group" > { %loop #groups}<option value="{#groups[i][id]}" { %if {#data[defaultusergroup]} eq {#groups[i][id]} }selected{/if} >{#groups[i][name]}</option>{/loop} </select> </td></tr>

</table>
</fieldset>
<br>
<fieldset>
<legend> { %lang r2 }&nbsp;<a href="##" onClick="javascript:alert('{ %lang o4}');">?</a></legend>

<table cellspacing="4" cellpadding="4">

<tr> <td> { %lang r30 } </td> <td> { %lang r31}</td> </tr>
<tr>
<td> { %lang r8 } </td>
<td> <select name="r_nickname">
<option value="0" { %if {#data[r_nickname]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_nickname]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_nickname]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>


<tr>
<td> { %lang r9 } </td>
<td> <select name="r_cellphone">
<option value="0" { %if {#data[r_cellphone]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_cellphone]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_cellphone]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>


<tr>
<td> { %lang r10 } </td>
<td> <select name="r_workphone">
<option value="0" { %if {#data[r_workphone]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_workphone]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_workphone]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>

<tr>
<td> { %lang r11 } </td>
<td> <select name="r_homephone">
<option value="0" { %if {#data[r_homephone]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_homephone]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_homephone]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>

<tr>
<td> { %lang r12 } </td>
<td> <select name="r_fax">
<option value="0" { %if {#data[r_fax]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_fax]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_fax]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>

<tr>
<td> { %lang r13 } </td>
<td> <select name="r_country">
<option value="0" { %if {#data[r_country]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_country]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_country]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>

<tr>
<td> { %lang r14 } </td>
<td> <select name="r_city">
<option value="0" { %if {#data[r_city]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_city]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_city]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>

<tr>
<td> { %lang r15 } </td>
<td> <select name="r_address">
<option value="0" { %if {#data[r_address]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_address]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_address]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>

<tr>
<td> { %lang r16 } </td>
<td> <select name="r_postindex">
<option value="0" { %if {#data[r_postindex]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_postindex]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_postindex]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>


<tr>
<td> { %lang r17 } </td>
<td> <select name="r_companyname">
<option value="0" { %if {#data[r_companyname]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_companyname]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_companyname]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>

<tr>
<td> { %lang r18 } </td>
<td> <select name="r_companydep">
<option value="0" { %if {#data[r_companydep]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_companydep]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_companydep]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>

<tr>
<td> { %lang r19 } </td>
<td> <select name="r_companyjob">
<option value="0" { %if {#data[r_companyjob]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_companyjob]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_companyjob]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>

<tr>
<td> { %lang r20 } </td>
<td> <select name="r_companysize">
<option value="0" { %if {#data[r_companysize]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_companysize]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_companysize]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>

<tr>
<td> { %lang r21 } </td>
<td> <select name="r_workaddress">
<option value="0" { %if {#data[r_workaddress]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_workaddress]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_workaddress]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>

<tr>
<td> { %lang r22 } </td>
<td> <select name="r_sex">
<option value="0" { %if {#data[r_sex]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_sex]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_sex]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>


<tr>
<td> { %lang r23 } </td>
<td> <select name="r_education">
<option value="0" { %if {#data[r_education]} eq 0}selected{/if}>{ %lang r32} </option>
<option value="1" { %if {#data[r_education]} eq 1}selected{/if}>{ %lang r33} </option>
<option value="2" { %if {#data[r_education]} eq 2}selected{/if}>{ %lang r34} </option>
</select> </td>
</tr>
</table>

</fieldset><br>
<div align="center"><input class="button" type="Submit" name="Submit" value="{ %lang o3}" ></div>
</form>